/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controller;

import model.Disciplina;
import pagecontroller.JsfUtil;
import pagecontroller.PageManager;

/**
 *
 * @author Edilson
 */
public class Controllers {


    public static DisciplinaController getDisciplinaControllers(){
        DisciplinaController disciplinaController = (DisciplinaController) JsfUtil.getObjectFromSession("DisciplinaController");
        if(disciplinaController == null){
            disciplinaController = new DisciplinaController();
        }
        return disciplinaController;
    }



    public static EmentaController getEmentaControllers(){
        EmentaController ementaController = (EmentaController) JsfUtil.getObjectFromSession("EmentaController");
        if(ementaController == null){
            ementaController = new EmentaController();
        }
        return ementaController;
    }


     public static ConteudoDaEmentaController getConteudoDaEmentaControllers(){
        ConteudoDaEmentaController conteudoDaConteudoDaEmentaController = (ConteudoDaEmentaController) JsfUtil.getObjectFromSession("ConteudoDaEmentaController");
        if(conteudoDaConteudoDaEmentaController == null){
            conteudoDaConteudoDaEmentaController = new ConteudoDaEmentaController();
        }
        return conteudoDaConteudoDaEmentaController;
    }



     public static ConteudoController getConteudoControllers(){
        ConteudoController conteudoDaConteudoController = (ConteudoController) JsfUtil.getObjectFromSession("ConteudoController");
        if(conteudoDaConteudoController == null){
            conteudoDaConteudoController = new ConteudoController();
        }
        return conteudoDaConteudoController;
    }



    public static PageManager getPageManager(){
    PageManager pageManager = (PageManager) JsfUtil.getObjectFromSession("PageManager");
        return pageManager;
    }

    public static TurmaController getTurmaController() {
        TurmaController turmaController = (TurmaController) JsfUtil.getObjectFromSession("TurmaController");
        if(turmaController == null){
            turmaController = new TurmaController();
        }
        return turmaController;
    }

      public static MatriculadoController getMatriculadoController() {
        MatriculadoController matriculadoController = (MatriculadoController) JsfUtil.getObjectFromSession("MatriculadoController");
        if(matriculadoController == null){
            matriculadoController = new MatriculadoController();
        }
        return matriculadoController;
    }


}
